//创建一个简单对象
/*var person = new Object();
person.name = "小明";
person.age = 18;
person.job = "无业游民";
person.say = function(){
    alert(this.name);
}
person.say();*/

//使用JSON的形式创建上述对象
var person = {
    name : "小明",
    age : 18,
    say : function(){
        alert(this.name);
    }
}
person.say();